<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>下载APP</title>
    <script src="/static/js/jquery.min.js"></script>
    <style>
        a {
            padding: 0;
            margin: 0;
            text-decoration: none;
        }

        a:link {
            text-decoration: none;
        }

        a:visited {
            text-decoration: none;
        }

        a:hover {
            text-decoration: none;
        }

        a:active {
            text-decoration: none;
        }

        body,
        html {
            margin: 0;
            padding: 0;
            background-color: #181818;
            height: 100%;
            width: 100%;
            font-family: -apple-system, SF UI Text, Arial, PingFang SC, Hiragino Sans GB, Microsoft YaHei, WenQuanYi Micro Hei, sans-serif;
        }

        body {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .icon {
            width: 60vw;
            height: 60vw;
        }

        .btn-download {
            width: 188px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgb(0, 255, 18);
            font-size: 18px;
            border-radius: 10px;
            background: rgba(0, 0, 0, 0);
            outline: none;
            border: 1px solid rgb(0, 255, 18);
            margin-top: 30px;
        }

        .btn-download svg {
            width: 20px;
            margin-right: 6px;
        }

        .btn-download .text {
            width: 120px;
            text-align: center;
        }

        .mask {
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
            display: none;
        }

        .mask img {
            position: absolute;
            right: 15px;
            top: 0;
            width: 200px;
        }
    </style>
</head>

<body>
<img src="img/app_icon_raex.png" class="icon"/>
<a class="btn-download"
   href="https://itunes.apple.com/cn/app/id1598469798">
    <svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="apple"
         class="svg-inline--fa fa-apple fa-w-12" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512">
        <path fill="currentColor"
              d="M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z">
        </path>
    </svg>
    <span class="text">下载iOS版</span>
</a>
<a class="btn-download" id="btn-android">
    <svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="android"
         class="svg-inline--fa fa-android fa-w-18" role="img" xmlns="http://www.w3.org/2000/svg"
         viewBox="0 0 576 512">
        <path fill="currentColor"
              d="M420.55,301.93a24,24,0,1,1,24-24,24,24,0,0,1-24,24m-265.1,0a24,24,0,1,1,24-24,24,24,0,0,1-24,24m273.7-144.48,47.94-83a10,10,0,1,0-17.27-10h0l-48.54,84.07a301.25,301.25,0,0,0-246.56,0L116.18,64.45a10,10,0,1,0-17.27,10h0l47.94,83C64.53,202.22,8.24,285.55,0,384H576c-8.24-98.45-64.54-181.78-146.85-226.55">
        </path>
    </svg>
    <span class="text">下载Android版</span>
</a>
<div class="mask">
    <img src="img/zhifu_img_liulanqi_ios.png"/>
</div>
<script>
    if (/micromessenger/i.test(navigator.userAgent)) {
        $('.mask').fadeIn();
    }
    $.get('/sysConfig/get/apk_url', function (res) {
        console.log(res);
        $('#btn-android').attr('href', res.value);
    });
</script>
</body>

</html>